package cn.bonoon.kernel.menus;

public class DesInfo {
	private final String value;
	private final boolean href;
	private final int height;
	private static final int DEAULT_HEIGHT = 100;
	public DesInfo(String value, String type, int height) {
		this.value = value;
		this.href = "href".equalsIgnoreCase(type);
		this.height = height > 0 ? height : DEAULT_HEIGHT;
	}
	public String getValue() {
		return value;
	}
	public boolean isHref() {
		return href;
	}
	public int getHeight() {
		return height;
	}
}
